﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using ZhaoPin.Business;
namespace ZhaoPin
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Label lbRealName = (Label)HeadLoginView.FindControl("lbRealName");
            Label lbState = (Label)HeadLoginView.FindControl("lbState");
            if (lbRealName != null && lbState != null)
            {
                Guid guid=(Guid)Membership.GetUser().ProviderUserKey;
                PersonState ps = new PersonState(guid);
                lbRealName.Text = ps.GetRealName();
                lbState.Text = ps.GetCheckState();
            }
        }
    }
}
